<?php 
class newsinfoModel extends viewModel{
	public $table="news";
	public $view =array(
		"user"=>array(
			"join_type"=>"inner",
			"on"=>"news.username=user.username"
		),
		"news_data"=>array(
		 	"join_type"=>"inner",
		  	"on"=>"news.id=news_data.nid"
		)
	);





}


?>